<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">


<ui:composition template="../templates/template.xhtml">

	<ui:define name="title">
	 	<h:outputText value="Web Client Main"/> 
	</ui:define>
	<ui:param name="page" value="home" />

	<ui:define name="header">
		<ui:include src="../header.xhtml" />
	</ui:define>

	<ui:define name="menu">
		<div align="center">
	
		</div>
	</ui:define>
	
	<ui:define name="menu">
		<div align="center">
			<h:form id="menuForm" >
				<h:message for="menuForm" class="error" />
				<br/>
				<h:commandButton value="Search by ..." action="#{judgeMainPage.gotoSearchPage}" styleClass="buttonClass" immediate="true" />
				<br />
				<br />
				<h:commandButton value="Reports" action="#{judgeMainPage.gotoReportsPage}" styleClass="buttonClass" immediate="true" />
				<br />
				<br />
			</h:form>
			
			<h:form>
				<hr/>
				<h:outputText value="Choose Table" styleClass="lefttext"/>
				<br/>
				<h:selectOneRadio
					id="status"
					value="#{judgeMainPage.displayTable}"
					immediate="true"
					required="true"
					layout="pageDirection">
					<f:selectItem itemValue="appellate"
						itemLabel="Appellate Filings"/>
					<f:selectItem itemValue="civil"
						itemLabel="Civil Filings"/>
					<f:selectItem itemValue="childEnforcement"
						itemLabel="Child Enforcment Filings"/>
					<f:selectItem itemValue="dispositionReview"
						itemLabel="Disposition Review"/>
					<f:selectItem itemValue="allOfficialFilings"
						itemLabel="All Official Filings"/>
					<f:selectItem itemValue="received"
						itemLabel="Received Filings"/>
					<f:selectItem itemValue="imported"
						itemLabel="Imported Filings"/>
					<f:selectItem itemValue="rejected"
						itemLabel="Rejected Filings"/>
					<f:selectItem itemValue="served"
						itemLabel="Served Filings"/>
					<f:selectItem itemValue="nonServed"
						itemLabel="Non-Served Filings"/>
					<f:selectItem itemValue="disposed"
						itemLabel="Cases Decided"/>
				</h:selectOneRadio>					
				<hr/>
				<h:outputText value="Sort By Column" styleClass="lefttext"/>
				<h:selectOneRadio
					id="orderByColumnChoice"
					value="#{judgeMainPage.columnOrder}"
					layout="pageDirection"
					immediate="true">
					<f:selectItem itemValue="init" itemLabel="Initiated Date"/>
					<f:selectItem itemValue="evt" itemLabel="Last Event Date"/>
				</h:selectOneRadio>
				<hr/>
				<h:outputText value="Order Direction" styleClass="lefttext"/>
				<h:selectOneRadio
					id="ascendOrDescendChoice"
					value="#{judgeMainPage.listOrdering}"
					layout="pageDirection"
					immediate="true">
					<f:selectItem itemValue="asc" itemLabel="Ascending"/>
					<f:selectItem itemValue="desc" itemLabel="Descending"/>
				</h:selectOneRadio>
				<hr/>
				<h:selectBooleanCheckbox title="personalCases" binding="#{judgeMainPage.personalCases}"/>
				<h:outputText value="View Only Cases I Have Worked On"/>
				<hr/>
				<h:commandButton value="View Table"/>
				<br/><br/><br/><br/><br/><br/>
				<table>
					<tr>
						<td class="errorfile" rowspan="1">
							<h:commandLink
							action="#{judgeMainPage.gotoTransmissionErrorFilingPage}"
							immediate="true"
							styleClass="imgButton">
								<h:graphicImage url="/secure/images/trans_error.gif"
									alt="Transmission Error"/>
							</h:commandLink>
							<br/>
							<h:outputText value="You Have "/>
							<h:outputText value="#{judgeMainPage.transmissionErrorCount}"
								styleClass="textFont200"/>
							<h:outputText value=" Transmission Error(s)"/>
						</td>
					</tr>
				</table>
			</h:form>
		</div>
	</ui:define>

	<ui:define name="body">
	
<!-- True Sort Table -->
		<iframe id="body" src="/GAJE_2.0/secure/judge/innerJudgeMain.faces"
			style="height: 825; width: 800; border: 0;" scrolling="auto"
			height="825px" width="800px" frameborder="0"></iframe>
	</ui:define>
</ui:composition>

</html>
